<?php
/**
 * Description: 行测-笔记-获取
 * User: devforma
 * Date: 16/11/4
 * Time: 16:31
 */

class GetQuestionNotes implements iController {
    private static $MODULE_DIR;

    function __construct() {
        self::$MODULE_DIR  = __DIR__ . '/modules/';
    }

    public function output($queryArgs) {

        if (validateUser($queryArgs) !== 1 || empty($queryArgs['question_id']))
            return genOutput(1000);

        $result = getQuestionNotes($queryArgs);

        $data['content'] = !empty($result) ? nl2br($result->content) :'';

        return genOutput(1, $data);
    }
}